package cn.stylefeng.guns.modular.tcpconnection.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 封装类
 *
 * @author gummybear
 * @date 2023/06/29 19:15
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DeviceConnectRequest extends BaseRequest {

    /**
     * 连接类型
     */
    @TableField("link_type")
    @NotNull(message = "连接类型不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("连接类型")
    private String linkType;

    /**
     * 设备名称
     */
    @TableField("device_name")
    @ChineseDescription("设备名称")
    private String deviceName;

    /**
     * 设备类型
     */
    @TableField("device_type")
    @ChineseDescription("设备类型")
    private String deviceType;

    /**
     * 设备ID
     */
    @TableField("device_ip")
    @NotNull(message = "设备IP不能为空", groups = {add.class, edit.class})
    @ChineseDescription("设备IP")
    private String deviceIp;

    /**
     * 设备状态
     */
    @TableField("device_status")
    @ChineseDescription("设备状态")
    private String deviceStatus;

}
